package com.ycrlkj.android.modulescore.main.viewmodel;

import android.annotation.SuppressLint;
import android.app.Application;
import android.content.Context;
import androidx.annotation.NonNull;
import androidx.lifecycle.AndroidViewModel;
import com.alibaba.android.arouter.launcher.ARouter;
import com.ycrlkj.android.modulespublic.common.constant.RoutePath;

public class HomeViewModel extends AndroidViewModel {

    @SuppressLint("StaticFieldLeak")
    private final Context context;

    public HomeViewModel(@NonNull Application application) {
        super(application);
        context = getApplication().getApplicationContext();
    }

    public void handleToVehicleList() {
        ARouter.getInstance().build(RoutePath.PAGE_VEHICLE_LIST).navigation();
    }

}
